package com.lcb.account.service;

import com.lcb.account.entity.TAccount;
import com.lcb.common.utils.BaseResponse;
import org.springframework.web.bind.annotation.*;

/****
 * @Author:lcb
 * @Description:TAccount业务层接口
 * @Date: 2021-01-28 11:27:07
 *****/
public interface TAccountService {

    @PostMapping("/account/decrease")
    BaseResponse decrease(@RequestBody TAccount tAccount);

    /***
     * TAccount多条件分页查询
     * @param tAccount
     * @param page
     * @param size
     * @return
     */
    @GetMapping("/findTAccountList/{page}/{size}")
    BaseResponse findTAccountList(@RequestBody TAccount tAccount, @PathVariable(value = "page") int page, @PathVariable(value = "size") int size);

    /***
     * 删除TAccount
     * @param ids
     */
    @DeleteMapping("/deleteTAccountById/{ids}")
    BaseResponse deleteTAccountById(@PathVariable(value = "ids") String ids);

    /***
     * 修改TAccount数据
     * @param tAccount
     */
    @PutMapping("/updateTAccount")
    BaseResponse updateTAccount(@RequestBody TAccount tAccount);

    /***
     * 新增TAccount
     * @param tAccount
     */
    @PostMapping("/addTAccount")
    BaseResponse addTAccount(@RequestBody TAccount tAccount);

    /**
     * 根据ID查询TAccount
     *
     * @param id
     * @return
     */
    @GetMapping("/findTAccountById/{id}")
    BaseResponse findTAccountById(@PathVariable("id") Long id);

    /***
     * 查询所有TAccount
     * @return
     */
    @GetMapping("/findTAccountAll")
    BaseResponse findTAccountAll();
}
